// 专门呢个用于操作person相关的逻辑
export default {
    namespaced: true,
    actions:{},
    mutations:{
        ADD_PERSON(state,value){
            state.persons.unshift(value)
        }
    },
    state:{
        persons:[{
            id: '001',
            name: 'zhangsan'
        }]
    },
    getters:{
        firstPersonName(state){
            return state.persons[0].name
        }
    }

}